<?php

//
include_once("../../interface/globals.php");
include_once("{$GLOBALS['srcdir']}/sql.inc");
include_once("{$GLOBALS['srcdir']}/formdata.inc.php");

$params = $_REQUEST;

/*$q = formData("q","G",true);
if (!$q) return;
$limit = $_GET['limit'];*/

$sql = "SELECT * FROM `drugs_qnt` WHERE drug_id =".$params['drug_id'];
        
$rez = sqlStatement($sql);



while ($row = sqlFetchArray($rez)) {
    //echo $row['name']."|".$row['drug_id']."\n";
	$array[] = $row;
}

echo json_encode($array);

?>
